<template>
  <div class="box">
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item>
        <el-select v-model="formInline.keyWord" placeholder="套餐名称" size="small">
          <el-option label="全部类型" :value="0" size="small" ></el-option>
          <el-option label="老年人套餐" :value="1" size="small"></el-option>
          <el-option label="儿童套餐" :value="2" size="small"></el-option>
          <el-option label="通用套餐" :value="3" size="small"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit" size="small">查询</el-button>
      </el-form-item>
    </el-form>

    <div class="deal">
      <el-button type="primary" size="small" @click="add">添加信息</el-button>
      <el-button type="primary" size="small" @click="removeAll">全部删除</el-button>
      
    </div>
  </div>
</template>

<script>
import eventBus from '../../../utils/busEvent';

export default {
  data() {
    return {
      formInline: {
        keyWord:""
      }
    };
  },
  methods: {
    onSubmit() {
      this.$emit("searchTransfer",this.formInline.keyWord)
    },
    removeAll(){
      eventBus.$emit("removeAllTransfer")
    },
    add(){
      eventBus.$emit("drawerTransfer")
    }
    
  }
};
</script>
<style scoped>
.el-form {
  text-align: left;
  line-height: 18px;
}
.box{
  display: flex;
  height: 50px;
  justify-content: space-between;
   line-height: 18px;
}
.box>.deal{
height: 50px;
}

</style>